﻿using System;
using System.Runtime.InteropServices;
using System.ComponentModel;

namespace ArgusLib.FFmpeg.avcodec
{
	[StructLayout(LayoutKind.Sequential)]
	public struct AVProfile
	{
		public Interop.FF_PROFILE profile;

		/// <summary>
		/// short name for the profile
		/// </summary>
		[MarshalAs(UnmanagedType.LPStr)]
		public string name;

		public override bool Equals(object obj)
		{
			AVProfile prof = (AVProfile)obj;
			return this.profile == prof.profile;
		}
	}
}
